<?php

require('base.php');

class Page extends Base {
	
	function Page() {
		parent::Base();
		$this->database();
	}
	
	function show($up, $language) {
		$this->language( $language, 'base' );
		
		$page = $this->db->find_row("select * from page where language='$language' and url_pattern='$up'");
		
		$meta = array(
			'title' 		=> $page['title'],
			'keywords'		=> $page['keywords'],
			'description'	=> $page['description']
		);
		
		$data = array(
			'page' 	=> $page,
			'meta'	=> $meta
		);
		$this->layout('portal/page', $data);
	}
	
}

?>